<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="head.htm" />
<title>Hotelorganizer</title>
</head>
<body>
	<div id="head">
		<h1>HotelOrganizer</h1>
	</div><jsp:include page="menu-head.htm"/>
	<jsp:include page="menu-kunde.htm" />
	<div id="content">
		<h2>
			<c:out value="${title}" />
		</h2>
		<p>
			<c:out value="${message}" />
		</p>
		<table class="listing">
			<colgroup>
				<c:if test="${edit}">
					<col class="buttoncell" />
					<col class="buttoncell" />
				</c:if>
				<col />
				<col />
				<col />
				<col />
				
				<col />
				<col />
				<col />
				<col />
			</colgroup>
			<tbody>
				<tr>
 					<c:if test="${edit}"> 
						
 					</c:if> 
					<th>Zimmer-Nr</th>
					<th>Anzahl der Betten</th>
					<th>QM</th>
					<th>Haustiere erlaubt</th>
					<th>Raucherzimmer</th>
					<th>Kategorie</th>
					<th>Preis/Nacht</th>
					
				</tr>
				<c:forEach items="${zimmer1}" var="zimmer">
				
					<tr>
						
						<td><c:out value="${zimmer.nr}" /></td>
						<td><c:out value="${zimmer.betten}" /></td>
						<td><c:out value="${zimmer.qm}" /></td>
						 <td>
						<c:choose>
						<c:when test="${zimmer.haustier == true}">
						<c:out value="ja"/>
						</c:when>
						<c:otherwise>
						<c:out value="nein"/>
						</c:otherwise>
						</c:choose>
						</td>
						<td>   
						<c:choose>
						<c:when test="${zimmer.raucher == true}">
						<c:out value="ja"/>
						</c:when>
						<c:otherwise>
						<c:out value="nein"/>
						</c:otherwise>
						</c:choose>
						</td>
						<td><c:out value="${zimmer.kategorie.bezeichnung}" /></td>
						<td><c:out value="${zimmer.kategorie.preis}" />	</td>

					</tr>
				</c:forEach>
			</tbody>
		</table>
		<br />
		<p>
			<a href="EditReservierung.html">Reservierung hinzuf&uuml;gen</a>
		</p>
	</div>
</body>
</html>